package com.rede.didiok.admin.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rede.didiok.admin.entity.AdminEntity;

/**
 * 管理员表
 * 
 * @author Rede
 * @email didiok@foxmail.com
 * @date 2023-08-07 18:21:17
 */
@Mapper
public interface AdminDao extends BaseMapper<AdminEntity> {

    /**
     * 通过uid获取管理员
     *
     * @return
     */
    public AdminEntity getAdminByUid(@Param("uid") String uid);

    String getNicknameById(@Param("uid")String uid);

    /**
     * 通过 id 更新管理员密码
     * @param adminUid
     * @param password
     * @return
     */
    Boolean updateAdminPasswordById(@Param("uid") String uid, @Param("password") String password);
}
